/**
 * @Author Stringzhua
 * @Date 2024/3/7 19:21
 * description:
 */
public class OuterClass02 {//外部类
    private String outerName;//成员变量

    public void display() {//成员方法
        class InnerClass {
            public void print() {
                System.out.println("method inner class");
            }
        }
        InnerClass innerClass = new InnerClass();
        innerClass.print();
    }

    public static void main(String[] args) {
        OuterClass outerClass = new OuterClass();
        outerClass.display();
    }
}